using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DefenseTools._Visibility
{
    /// <summary>
    /// <para>Find Local Peaks Or Valleys</para>
    /// <para>Finds  local peaks or valleys  within a defined area.</para>
    /// <para>查找定义区域内的局部山峰或谷谷。</para>
    /// </summary>    
    [DisplayName("Find Local Peaks Or Valleys")]
    public class FindLocalPeaksValleys : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FindLocalPeaksValleys()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_surface">
        /// <para>Input Surface</para>
        /// <para>The input elevation raster surface.</para>
        /// <para>输入高程栅格表面。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output point feature class containing the local peaks or valleys.</para>
        /// <para>包含局部波峰或波谷的输出点要素类。</para>
        /// </param>
        /// <param name="_peak_valley_op_type">
        /// <para>Peaks or Valleys</para>
        /// <para><xdoc>
        ///   <para>Specifies the type of operation the tool will perform.</para>
        ///   <bulletList>
        ///     <bullet_item>Local peaks—Local peaks will be found. This is the default.</bullet_item><para/>
        ///     <bullet_item>Local valleys—Local valleys will be found.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定工具将执行的操作类型。</para>
        ///   <bulletList>
        ///     <bullet_item>局部峰值—将找到局部峰值。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>局部谷 - 将找到局部谷。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        /// <param name="_num_peaks_valleys">
        /// <para>Number of Peaks or Valleys</para>
        /// <para>The number of peaks or valleys to find.</para>
        /// <para>要查找的峰值或谷值的数量。</para>
        /// </param>
        public FindLocalPeaksValleys(object _in_surface, object _out_feature_class, _peak_valley_op_type_value _peak_valley_op_type, long _num_peaks_valleys)
        {
            this._in_surface = _in_surface;
            this._out_feature_class = _out_feature_class;
            this._peak_valley_op_type = _peak_valley_op_type;
            this._num_peaks_valleys = _num_peaks_valleys;
        }
        public override string ToolboxName => "Defense Tools";

        public override string ToolName => "Find Local Peaks Or Valleys";

        public override string CallName => "defense.FindLocalPeaksValleys";

        public override List<string> AcceptEnvironments => ["extent", "outputCoordinateSystem", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_surface, _out_feature_class, _peak_valley_op_type.GetGPValue(), _num_peaks_valleys, _in_feature];

        /// <summary>
        /// <para>Input Surface</para>
        /// <para>The input elevation raster surface.</para>
        /// <para>输入高程栅格表面。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Surface")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_surface { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output point feature class containing the local peaks or valleys.</para>
        /// <para>包含局部波峰或波谷的输出点要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Peaks or Valleys</para>
        /// <para><xdoc>
        ///   <para>Specifies the type of operation the tool will perform.</para>
        ///   <bulletList>
        ///     <bullet_item>Local peaks—Local peaks will be found. This is the default.</bullet_item><para/>
        ///     <bullet_item>Local valleys—Local valleys will be found.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定工具将执行的操作类型。</para>
        ///   <bulletList>
        ///     <bullet_item>局部峰值—将找到局部峰值。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>局部谷 - 将找到局部谷。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Peaks or Valleys")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _peak_valley_op_type_value _peak_valley_op_type { get; set; }

        public enum _peak_valley_op_type_value
        {
            /// <summary>
            /// <para>Local peaks</para>
            /// <para>Local peaks—Local peaks will be found. This is the default.</para>
            /// <para>局部峰值—将找到局部峰值。这是默认设置。</para>
            /// </summary>
            [Description("Local peaks")]
            [GPEnumValue("PEAKS")]
            _PEAKS,

            /// <summary>
            /// <para>Local valleys</para>
            /// <para>Local valleys—Local valleys will be found.</para>
            /// <para>局部谷 - 将找到局部谷。</para>
            /// </summary>
            [Description("Local valleys")]
            [GPEnumValue("VALLEYS")]
            _VALLEYS,

        }

        /// <summary>
        /// <para>Number of Peaks or Valleys</para>
        /// <para>The number of peaks or valleys to find.</para>
        /// <para>要查找的峰值或谷值的数量。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Number of Peaks or Valleys")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public long _num_peaks_valleys { get; set; }


        /// <summary>
        /// <para>Input Area</para>
        /// <para>The input polygon feature class in which the local peaks or valleys will be found.</para>
        /// <para>将在其中找到局部波峰或波谷的输入面要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Area")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_feature { get; set; } = null;


        public FindLocalPeaksValleys SetEnv(object extent = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(extent: extent, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}